<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" lang="zh" xml:lang="zh">
<head>
<META http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>指南: 组件图</title>
<meta content="Guideline" name="uma.type">
<meta content="component_diagram" name="uma.name">
<meta content="组件图" name="uma.presentationName">
<meta name="element_type" content="other">
<meta content="description" name="filetype">
<meta name="role" content="">
<link type="text/css" href="./../../../css/default.css" rel="StyleSheet">
<script language="JavaScript" type="text/javascript" src="./../../../scripts/ContentPageResource.js"></script><script language="JavaScript" type="text/javascript" src="./../../../scripts/ContentPageSection.js"></script><script language="JavaScript" type="text/javascript" src="./../../../scripts/ContentPageSubSection.js"></script><script language="JavaScript" type="text/javascript" src="./../../../scripts/ContentPageToolbar.js"></script><script language="JavaScript" type="text/javascript" src="./../../../scripts/contentPage.js"></script><script language="JavaScript" type="text/javascript">
					var backPath = './../../../';
					var imgPath = './../../../images/';
					var nodeInfo=[{view: "view:_LVCagP5WEdmAzesbYywanQ", path: ["_LVCagP5WEdmAzesbYywanQ", "_zRigkAILEdq-_NKqZM1EhA", "_QV4x0AISEdqTna4sZVFRow", "_M6RHkN7IEdm8G6yT7-Wdqw", "{157E9B67-C619-410D-A927-F2CD217BF8FE}", "2.2530407104352316E-306"]}, {view: "view:_FCx1oN7CEdmsEI4YDGX2ag", path: ["_FCx1oN7CEdmsEI4YDGX2ag", "_Jvt1cAIaEdqEutyfYo0quQ", "_EOvXUN7HEdm8G6yT7-Wdqw", "_M6RHkN7IEdm8G6yT7-Wdqw", "{157E9B67-C619-410D-A927-F2CD217BF8FE}", "2.2530407104352316E-306"]}, {view: "view:_FCx1oN7CEdmsEI4YDGX2ag", path: ["_FCx1oN7CEdmsEI4YDGX2ag", "_Jvt1cAIaEdqEutyfYo0quQ", "_jijhYAIaEdqEutyfYo0quQ", "_mTMIkN7REdmjRZts2c4ZjQ", "{157E9B67-C619-410D-A927-F2CD217BF8FE}", "2.2530407104352316E-306"]}, {view: "view:_FCx1oN7CEdmsEI4YDGX2ag", path: ["_FCx1oN7CEdmsEI4YDGX2ag", "_jD8dUAIbEdqEutyfYo0quQ", "_2ClPcDIcEdqDs_9ORT1Rig", "2.2530407104352316E-306"]}];
					contentPage.preload(imgPath, backPath, nodeInfo,  '', false, false, false);
				</script>
</head>
<body>
<div id="breadcrumbs"></div>
<table width="100%" cellspacing="0" cellpadding="0" border="0">
<tr>
<td valign="top"><a name="Top"></a>
<div id="page-guid" value="2.2530407104352316E-306"></div>
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td nowrap="true" class="pageTitle">指南：组件图</td><td width="100%">
<div id="contentPageToolbar" align="right"></div>
</td>
</tr>
</table>
<table cellspacing="0" cellpadding="0" border="0" width="100%">
<tr>
<td class="pageTitleSeparator"><img height="1" title="" alt="" src="./../../../images/shim.gif"></td>
</tr>
</table>
<div class="overview">
<table cellpadding="0" cellspacing="0" border="0" width="97%">
<tr>
<td width="50"><img title="" alt="" src="./../../../images/guidance.gif"></td><td>
<table cellpadding="0" cellspacing="0" border="0" class="overviewTable">
<tr>
<td valign="top">组件图显示了组件的结构，包括指定组件的分类器以及实施它们的工件。本指南确定创建这样的图可能会很有用的情况。</td>
</tr>
</table>
</td>
</tr>
</table>
</div>
<div class="sectionHeading">关系</div>
<div class="sectionContent">
<table cellpadding="0" cellspacing="0" border="0" class="sectionTable">
<tr valign="top">
<th scope="row" class="sectionTableHeading">相关元素</th><td class="sectionTableCell">
<ul>
<li>
<a href="./../../../core.base_rup/workproducts/rup_implementation_model_5858DB65.html" guid="{157E9B67-C619-410D-A927-F2CD217BF8FE}">实施模型</a>
</li>
</ul>
</td>
</tr>
</table>
</div>
<div class="sectionHeading">主要描述</div>
<div class="sectionContent">
<table cellpadding="0" cellspacing="0" border="0" class="sectionTable">
<tr valign="top">
<td class="sectionTableSingleCell"><a id="Top" name="Top"></a><a id="XE_component_diagram__guidelines_for" name="XE_component_diagram__guidelines_for" class="index" key="组件图（component diagram）" text="指南"></a> 
<h3>
    <a id="Explanation" name="Explanation"></a>说明
</h3>
<p>
    组件图显示了组件的结构，包括用于指定组件的分类器以及实施它们的工件。
</p>
<p>
    还可以使用组件图按照实施子系统以及各实施元素之间的关系，显示实施模型的高层结构。
</p>
<h3>
    <a id="Use" name="Use"></a>使用
</h3>
<p>
    RUP 中组件图最重要的用途是显示实施模型的高层结构。尤其是：
</p>
<ul>
    <li>
        实施子系统以及它们的导入依赖关系。请参阅<a class="elementLinkWithUserText" href="./../../../core.base_rup/guidances/guidelines/import_dependency_in_implementation_20C8C9DC.html" guid="2.390918925290993E-305">工作产品指南：实施中的导入依赖关系</a>。
    </li>
    <li>
        以层组织的实施子系统。
    </li>
</ul>
<p>
    组件图的辅助用途是显示：
</p>
<ul>
    <li>
        源代码文件以及它们的编译依赖关系。请参阅<a class="elementLinkWithUserText" href="./../../../core.base_rup/guidances/guidelines/compilation_dependency_in_implementation_BED92496.html" guid="6.725844217842153E-306">工作产品指南：实施中的编译依赖关系</a>。
    </li>
    <li>
        应用程序文件以及它们的运行时依赖关系。
    </li>
    <li>
        源代码文件以及编译或链接产生的文件之间的派生关系。
    </li>
    <li>
        实施元素和它们实施的设计元素之间的实施依赖关系。请参阅<a class="elementLinkWithUserText" href="./../../../core.base_rup/guidances/guidelines/manifest_dependency_5790834E.html" guid="7.405934676741527E-306">工作产品指南：清单依赖关系</a>。
    </li>
</ul>
<p>
    注意 RUP 强调使用组件图对实施子系统、重要的实施元素以及它们的关系建模。但是，显示 UML 组件和分类器（它指定了这些组件）的组件图还可以用在设计模型中，使用 UML 组件来表示“工件：设计子系统”。关于该主题的更多信息，请参阅<a class="elementLinkWithUserText" href="./../../../core.base_rup/guidances/guidelines/design_subsystem_B26FD609.html" guid="1.2314266786534317E-305">工作产品指南：设计子系统</a>。
</p>
<div style="MARGIN-LEFT: 2em">
    <br />
</div><br />
<br /></td>
</tr>
</table>
</div>
<table cellpadding="0" cellspacing="0" border="0" class="copyright">
<tr>
<td class="copyright"><p>
    &copy; &nbsp;Copyright IBM Corp.&nbsp;1987, 2006. &nbsp;All Rights Reserved.
</p></td>
</tr>
</table>
</td>
</tr>
</table>
</body>
<script language="JavaScript" type="text/javascript">
				contentPage.onload();
			</script>
</html>
